// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
var FastClick = require('fastclick')
FastClick.attach(document.body)

window._=require('underscore')

document.documentElement.style.height = window.innerHeight + 'px'
// import './snapsvg'
import Vue from 'vue'
window.Vue = Vue
import VueRouter from 'vue-router'
// import App from './App'
import router from './router'

import {AlertPlugin,ToastPlugin} from 'vux'
Vue.use(AlertPlugin)
Vue.use(ToastPlugin)

import thisstore from './store/store.js'
import Vuex from 'vuex'
Vue.use(Vuex)

const store = new Vuex.Store(thisstore)

Vue.config.productionTip = false
// 全局过滤器
import {toFixed2,dateFormat} from './filter'

Vue.filter('toFixed2',
 toFixed2
)

Vue.filter('dateFormat', dateFormat)
/* eslint-disable no-new */
new Vue({
  router,
  store,
  mounted(){
    console.log(this.$refs.svg)
  }
  // render: h => h(App)
}).$mount('#app-box')

